package com.wh.wisdomsite.xbox.st.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.wh.wisdomsite.xbox.st.dao.*;
import com.wh.wisdomsite.xbox.st.entity.*;
import com.wh.wisdomsite.xbox.st.service.IRuntimeTaskService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 正在执行任务serviceImpl
 * @author xiezepeng
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.st.service.impl
 * @date 2018年12月24日 14:45
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@Service("runtimeTaskService")
@Transactional(rollbackFor = {Exception.class, RuntimeException.class})
public class RuntimeTaskServiceImpl extends ServiceImpl<RuntimeTaskMapper, RuntimeTask> implements IRuntimeTaskService {

    private static final Log logger = LogFactory.getLog(RuntimeTaskServiceImpl.class);

    @Autowired
    private RuntimeTaskMapper runtimeTaskMapper;

    @Override
    public Page<RuntimeTask> queryPage(Page<RuntimeTask> page, RuntimeTask runtimeTask,String compCode) {
        page.setRecords(runtimeTaskMapper.queryPage(page, runtimeTask,compCode));
        return page;
    }

}
